==========================================================================================================
Replication file for: *Knowing is Disturbing: Emotions and Public Attitudes toward Digital Control under Autocracy*
Journal: Perspectives on Politics
Date: September 29, 2025
Author: Danqi Guo <d.guo@fu-berlin.de> and Genia Kostka <genia.kostka@fu-berlin.de>
==========================================================================================================

----------------------------------------------------------------------------------------------------------
General Information
----------------------------------------------------------------------------------------------------------
1. Software Requirements:
All statistical analyses in this study were conducted using R (version 4.3.2) and R Studio (Version 2025.5.0.496) with operating system macOS 15.6.1. Please set the working directory to the folder where this ReadMe file is located.

2. Required R-packages: 
Listed in each file

3. Code files:
 1) data_preparation_rep.R: code that replicates the preparation of raw data for analysis, which generates a new dataset "data_cleaned_rep.csv" in the same repository. This code is to demonstrate how the key variables are created. To directly start the analytical part, you can also skip this code and the corresponding dataset ("data_raw_rep.csv"). 

 2) main_rep.R: code that reproduces the results in the main paper. 
    **Note:**  All tables and figures in the main text can be replicated using this code, execpt for the following ones:
    Figure 1 is a snippet of baseline vignette text of treatment stimuli.
    Table 1 displays the 3x3 factorial design with group size of each experimental condition.
    Table 2 displays the vignette text by factor and level.

 3) append_rep.R: code that reproduces the results presented in the online appendices.
    **Note:** All tables and figures in the online appendices can be replicated using this code, except for the following ones: 
    -- Table A1.1 displays a summary of information about partner online panels. 
    -- Table A1.2 displays summary statistics of excluded survey participants according to exclusion criteria.
    -- Table A3.1 displays summary statistics of the sociodemographic information about the participants for qualitative interviews.
    -- Table A3.2 displays summary statistics of the characteristics of the qualitative interviews.
    -- Table B2 displays the summary of vignette text for all experimental conditions. 
    -- Table B3 displays the summary of measurement of key variables and coding schemes. 

4. Data files:
 1) data_raw_rep.csv: a raw dataset used for data preprocessing for later analysis and should be implemented only with code "data_preparation_rep.R". 
 2) data_cleaned_rep.csv: a cleaned dataset generated from the code "data_preparation_rep.R" and should be used with code "main_rep.R" and "append_rep.R". 

----------------------------------------------------------------------------------------------------------
Codebook (selected)
----------------------------------------------------------------------------------------------------------
**Note**: Below are additional coding schemes of a few variables that either cannot be find in online appendix Table B3 or with a different variable name. For detailed measurement and coding schemes of all relevant variables, please refer to Table B3. 

MediaUse I (frequency of consuming foreign news): on a scale of 1-7 (never-everyday)
MediaUse II (VPN savvy):  on a scale of 1-5 (never heard about it - very familiar)
PoliIdeo I_1-5 (nationalism) - PoliIdeo II-5 (liberalism): on a scale of 1-5 (strongly disagree - strongly agree)
AttitudeI_1-4 (attitudes toward digital control in fictitious scenario): 1-5 (not at all - very much)
AttitudeII_1-4 (attitudes toward digital control inreal-life scenario): 1-5 (not at all - very mcuh)
Surveillance (treatment dimension I): 0 - no mention, 1 - personalized, 2 - public
Censorship (treatment dimension II): 0 - no mention, 1 - personalized, 2 - public

### Note
If you have any question, feel free to contact the authors. 